package com.ruoyi.ruoyictmanage.domain.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.ruoyictmanage.converter.LineNameConverter;
import com.ruoyi.ruoyictmanage.utils.StringToListIntUtil;

import java.util.Arrays;

public class MPNCTDTO {
    @ExcelProperty("MPN编号")
    private Long MPN_id;
    @ExcelProperty("MPN")
    private String MPN_name;
    @ExcelProperty("内部名称")
    private String internal_name;
    @ExcelProperty("工程名称")
    private String project_name;
    @ExcelProperty("工艺名称")
    private String process_name;
    @ExcelProperty(value = "产线",converter = LineNameConverter.class)
    private Line line;
    @ExcelIgnore
    private Long CT_id;
    @ExcelProperty("基准CT")
    private String benchmark_value;
    @ExcelProperty("测定日期")
    private String enter_data;
    @ExcelIgnore
    private String test_values;
    @ExcelIgnore
    private String[] test_valuess;
    @ExcelProperty("参数1")
    private String test_values1;
    @ExcelProperty("参数2")
    private String test_values2;
    @ExcelProperty("参数3")
    private String test_values3;
    @ExcelProperty("参数4")
    private String test_values4;
    @ExcelProperty("参数5")
    private String test_values5;
    @ExcelProperty("参数6")
    private String test_values6;
    @ExcelProperty("参数7")
    private String test_values7;
    @ExcelProperty("参数8")
    private String test_values8;
    @ExcelProperty("参数9")
    private String test_values9;
    @ExcelProperty("参数10")
    private String test_values10;
    @ExcelProperty("异常原因")
    private String exception_cause;
    @ExcelProperty("对策")
    private String countermeasure;
    @ExcelProperty("纳期")
    private String acceptance;
    @ExcelProperty("NPI")
    private String NPI;
    @ExcelProperty("process")
    private String process;
    @ExcelProperty("IE")
    private String IE;
    @ExcelProperty("负荷表组合名称")
    private String ic_name;
    @ExcelProperty("长度宽幅")
    private String DFF;
    @ExcelProperty("psc/sheet")
    private double psc_sheet;
    @ExcelProperty("设备配置")
    private String device_config;
    @ExcelProperty("部门名称")
    private String dept_name;
    @ExcelProperty("课别名称")
    private String class_name;
    @ExcelProperty("楼层")
    private String floor;
    @ExcelProperty("BU")
    private String BU;

    public MPNCTDTO() {
    }

    public MPNCTDTO(Long MPN_id, String MPN_name, String internal_name, String project_name, String process_name, Line line, Long CT_id, String benchmark_value, String enter_data, String test_values, String exception_cause, String countermeasure, String acceptance, String NPI, String process, String IE, String ic_name, String DFF, double psc_sheet, String device_config,  String dept_name, String class_name, String floor, String BU) {
        this.MPN_id = MPN_id;
        this.MPN_name = MPN_name;
        this.internal_name = internal_name;
        this.project_name = project_name;
        this.process_name = process_name;
        this.line = line;
        this.CT_id = CT_id;
        this.benchmark_value = benchmark_value;
        this.enter_data = enter_data;
        this.test_values = test_values;
        this.exception_cause = exception_cause;
        this.countermeasure = countermeasure;
        this.acceptance = acceptance;
        this.NPI = NPI;
        this.process = process;
        this.IE = IE;
        this.ic_name = ic_name;
        this.DFF = DFF;
        this.psc_sheet = psc_sheet;
        this.device_config = device_config;
        this.dept_name = dept_name;
        this.class_name = class_name;
        this.floor = floor;
        this.BU = BU;
        this.test_valuess=StringToListIntUtil.StringToList(test_values);
        this.test_values1=test_valuess[0];
        this.test_values2=test_valuess[1];
        this.test_values3=test_valuess[2];
        this.test_values4=test_valuess[3];
        this.test_values5=test_valuess[4];
        this.test_values6=test_valuess[5];
        this.test_values7=test_valuess[6];
        this.test_values8=test_valuess[7];
        this.test_values9=test_valuess[8];
        this.test_values10=test_valuess[9];
    }

    public Long getMPN_id() {
        return MPN_id;
    }

    public void setMPN_id(Long MPN_id) {
        this.MPN_id = MPN_id;
    }

    public String getMPN_name() {
        return MPN_name;
    }

    public void setMPN_name(String MPN_name) {
        this.MPN_name = MPN_name;
    }

    public String getInternal_name() {
        return internal_name;
    }

    public void setInternal_name(String internal_name) {
        this.internal_name = internal_name;
    }

    public String getProject_name() {
        return project_name;
    }

    public void setProject_name(String project_name) {
        this.project_name = project_name;
    }

    public String getProcess_name() {
        return process_name;
    }

    public void setProcess_name(String process_name) {
        this.process_name = process_name;
    }

    public Line getLine() {
        return line;
    }

    public void setLine(Line line) {
        this.line = line;
    }

    public Long getCT_id() {
        return CT_id;
    }

    public void setCT_id(Long CT_id) {
        this.CT_id = CT_id;
    }

    public String getBenchmark_value() {
        return benchmark_value;
    }

    public void setBenchmark_value(String benchmark_value) {
        this.benchmark_value = benchmark_value;
    }

    public String getEnter_data() {
        return enter_data;
    }

    public void setEnter_data(String enter_data) {
        this.enter_data = enter_data;
    }


    public String getTest_values() {
        return test_values;
    }

    public void setTest_values(String test_values) {
        this.test_values = test_values;
        this.test_valuess=StringToListIntUtil.StringToList(test_values);
        this.test_values1=test_valuess[0];
        this.test_values2=test_valuess[1];
        this.test_values3=test_valuess[2];
        this.test_values4=test_valuess[3];
        this.test_values5=test_valuess[4];
        this.test_values6=test_valuess[5];
        this.test_values7=test_valuess[6];
        this.test_values8=test_valuess[7];
        this.test_values9=test_valuess[8];
        this.test_values10=test_valuess[9];
    }

    public String getException_cause() {
        return exception_cause;
    }

    public void setException_cause(String exception_cause) {
        this.exception_cause = exception_cause;
    }

    public String getCountermeasure() {
        return countermeasure;
    }

    public void setCountermeasure(String countermeasure) {
        this.countermeasure = countermeasure;
    }

    public String getAcceptance() {
        return acceptance;
    }

    public void setAcceptance(String acceptance) {
        this.acceptance = acceptance;
    }

    public String getNPI() {
        return NPI;
    }

    public void setNPI(String NPI) {
        this.NPI = NPI;
    }

    public String getProcess() {
        return process;
    }

    public void setProcess(String process) {
        this.process = process;
    }

    public String getIE() {
        return IE;
    }

    public void setIE(String IE) {
        this.IE = IE;
    }

    public String getIc_name() {
        return ic_name;
    }

    public void setIc_name(String ic_name) {
        this.ic_name = ic_name;
    }

    public String getDFF() {
        return DFF;
    }

    public void setDFF(String DFF) {
        this.DFF = DFF;
    }

    public double getPsc_sheet() {
        return psc_sheet;
    }

    public void setPsc_sheet(double psc_sheet) {
        this.psc_sheet = psc_sheet;
    }

    public String getDevice_config() {
        return device_config;
    }

    public void setDevice_config(String device_config) {
        this.device_config = device_config;
    }


    public String getDept_name() {
        return dept_name;
    }

    public void setDept_name(String dept_name) {
        this.dept_name = dept_name;
    }

    public String getClass_name() {
        return class_name;
    }

    public void setClass_name(String class_name) {
        this.class_name = class_name;
    }

    public String getFloor() {
        return floor;
    }

    public void setFloor(String floor) {
        this.floor = floor;
    }

    public String getBU() {
        return BU;
    }

    public void setBU(String BU) {
        this.BU = BU;
    }

    public String[] getTest_valuess() {
        return test_valuess;
    }

    public void setTest_valuess(String[] test_valuess) {
        this.test_valuess = test_valuess;
    }

    public String getTest_values1() {
        return test_values1;
    }

    public void setTest_values1(String test_values1) {
        this.test_values1 = test_values1;
    }

    public String getTest_values2() {
        return test_values2;
    }

    public void setTest_values2(String test_values2) {
        this.test_values2 = test_values2;
    }

    public String getTest_values3() {
        return test_values3;
    }

    public void setTest_values3(String test_values3) {
        this.test_values3 = test_values3;
    }

    public String getTest_values4() {
        return test_values4;
    }

    public void setTest_values4(String test_values4) {
        this.test_values4 = test_values4;
    }

    public String getTest_values5() {
        return test_values5;
    }

    public void setTest_values5(String test_values5) {
        this.test_values5 = test_values5;
    }

    public String getTest_values6() {
        return test_values6;
    }

    public void setTest_values6(String test_values6) {
        this.test_values6 = test_values6;
    }

    public String getTest_values7() {
        return test_values7;
    }

    public void setTest_values7(String test_values7) {
        this.test_values7 = test_values7;
    }

    public String getTest_values8() {
        return test_values8;
    }

    public void setTest_values8(String test_values8) {
        this.test_values8 = test_values8;
    }

    public String getTest_values9() {
        return test_values9;
    }

    public void setTest_values9(String test_values9) {
        this.test_values9 = test_values9;
    }

    public String getTest_values10() {
        return test_values10;
    }

    public void setTest_values10(String test_values10) {
        this.test_values10 = test_values10;
    }

    @Override
    public String toString() {
        return "MPNCTDTO{" +
                "MPN_id=" + MPN_id +
                ", MPN_name='" + MPN_name + '\'' +
                ", internal_name='" + internal_name + '\'' +
                ", project_name='" + project_name + '\'' +
                ", process_name='" + process_name + '\'' +
                ", line=" + line +
                ", CT_id=" + CT_id +
                ", benchmark_value='" + benchmark_value + '\'' +
                ", enter_data='" + enter_data + '\'' +
                ", test_values='" + test_values + '\'' +
                ", test_valuess=" + Arrays.toString(test_valuess) +
                ", test_values1=" + test_values1 +
                ", test_values2=" + test_values2 +
                ", test_values3=" + test_values3 +
                ", test_values4=" + test_values4 +
                ", test_values5=" + test_values5 +
                ", test_values6=" + test_values6 +
                ", test_values7=" + test_values7 +
                ", test_values8=" + test_values8 +
                ", test_values9=" + test_values9 +
                ", test_values10=" + test_values10 +
                ", exception_cause='" + exception_cause + '\'' +
                ", countermeasure='" + countermeasure + '\'' +
                ", acceptance='" + acceptance + '\'' +
                ", NPI='" + NPI + '\'' +
                ", process='" + process + '\'' +
                ", IE='" + IE + '\'' +
                ", ic_name='" + ic_name + '\'' +
                ", DFF='" + DFF + '\'' +
                ", psc_sheet=" + psc_sheet +
                ", device_config='" + device_config + '\'' +
                ", dept_name='" + dept_name + '\'' +
                ", class_name='" + class_name + '\'' +
                ", floor='" + floor + '\'' +
                ", BU='" + BU + '\'' +
                '}';
    }
}
